
--5. Write a function that determines whether its input list is a palindrome.

-- [1,2,3,3,2,1]

isPalindrome [] = True
isPalindrome [x] = False
isPalindrome [x, y] = x == y
isPalindrome (x:xs) = x == head (drop (length xs - 1) xs)
                      && isPalindrome (take (length xs - 1) xs)
